Skip to content

fix(styles): align tokyonight-{night,storm,moon,day} with folke/tokyonight.nvim - #1521

Closed
danrneal wants to merge 2 commits into
alecthomas:masterfrom
danrneal:fix/tokyonight-night-style
Closed

danrneal wants to merge 2 commits into
alecthomas:masterfrom
danrneal:fix/tokyonight-night-style

Conversation

@danrneal

Copy link
Copy Markdown
Contributor

Aligns tokyonight-night, tokyonight-storm, tokyonight-moon, and tokyonight-day with the upstream folke/tokyonight.nvim palettes (colors/*.lua, groups/base.lua, and groups/treesitter.lua).

What was wrong

  • styles/tokyonight-storm.xml was an unedited copy of tokyonight-night.xml (using Night's #1a1b26 background instead of Storm's #24283b).
  • styles/tokyonight-day.xml leaked dark-mode #9d7cd8 into KeywordDeclaration and LiteralStringAffix instead of Day's #7847bd.
  • Across all 4 variants, several core syntax groups did not match tokyonight.nvim:
    • Numbers and boolean/null constants (LiteralNumber*, KeywordConstant) were yellow instead of orange (Constant).
    • Operators (Operator, OperatorWord) were bold green instead of blue5 (@operator / @keyword.operator).
    • Comments (Comment*) used terminal_black instead of comment, and CommentPreproc / CommentPreprocFile also used terminal_black instead of cyan (PreProc) and green (String).
    • Keywords: Keyword lacked italic purple (@keyword), KeywordDeclaration used purple instead of magenta (@keyword.function), and KeywordType used green2 instead of @type.builtin (blend_bg(blue1, 0.8)). Child keyword and preprocessor tokens now set noitalic so they do not inherit italics from Keyword or Comment.
    • Names: NameClass was orange and NameBuiltin was green instead of blue1 (Type / Special). NameBuiltinPseudo (self, this) was green instead of red (@variable.builtin). NameProperty and NameAttribute were yellow/blue instead of green1 (@property). NameDecorator and NameNamespace were bold blue/yellow instead of cyan (PreProc / @module). NameException was yellow instead of @type.builtin. NameLabel was green instead of blue (@label). NameEntity was cyan instead of blue1 (SpecialChar).
    • Strings: LiteralStringInterpol (${, {, }) used green instead of blue5 (@punctuation.special), LiteralStringEscape used blue instead of magenta (@string.escape), LiteralStringRegex used cyan instead of blue6 (@string.regexp), LiteralStringDoc used terminal_black instead of yellow (@string.documentation), and LiteralStringHeredoc / Affix / Delimiter are aligned with String (green). Literal and LiteralDate now use orange (Constant).
    • Punctuation: added the missing Punctuation entry (fg_dark, matching @punctuation.bracket).
    • Chrome and diffs: LineHighlight now uses bg_highlight (CursorLine), LineNumbers* use fg_gutter (LineNr), GenericInserted / GenericDeleted use diff.add / diff.delete with fg (DiffAdd / DiffDelete), and GenericHeading / GenericSubheading use bold blue (Title).
    • Added counterpart="tokyonight-day" to tokyonight-storm.xml and tokyonight-moon.xml so styles.GetForMode switches cleanly to tokyonight-day in light mode.

Before / After

tokyonight-night

tokyonight-night before and after

tokyonight-storm

tokyonight-storm before and after

tokyonight-moon

tokyonight-moon before and after

tokyonight-day

tokyonight-day before and after

Verification

  • go test ./... passes
  • golangci-lint run ./... reports 0 issues

@github-actions
github-actions Bot enabled auto-merge (squash) November 21, 2026 02:10
@danrneal danrneal closed this Nov 21, 2026
auto-merge was automatically disabled November 21, 2026 02:15

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant